<?php

namespace App\Http\Controllers\Goods;

use App\Http\Requests\Goods\GoodsConfigRequest;
use App\Http\Service\Goods\ManageGoodsConfigService;

class ManageGoodsConfigController
{
    public function getConfig()
    {
        (new ManageGoodsConfigService())->getConfig();
    }

    public function setConfig(){
        $data = request()->only(
            // 公司默认的发货收货配置
            'shipping_location_info'
        );
        (new GoodsConfigRequest())->check($data);
        (new ManageGoodsConfigService())->setConfig($data);
    }
}
